
      var xmlHttp
      var divid
      var durl;
      function showData(str,url,div){
        divid=div;
        durl=url;
      if (typeof XMLHttpRequest != "undefined"){
      xmlHttp= new XMLHttpRequest();
      }
      else if (window.ActiveXObject){
      xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
      }
      if (xmlHttp==null){
      alert("Browser does not support XMLHTTP Request")
      return;
      }
      durl +=str;

      xmlHttp.onreadystatechange = stateChange;
      xmlHttp.open("GET", durl, true);
      xmlHttp.send(null);
      }

      function stateChange(){
      if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
      document.getElementById(divid).innerHTML=xmlHttp.responseText
      }
      }